package com.achievo.know.application.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.achievo.know.application.AreaApplication;
import com.achievo.know.domain.Area;
import com.achievo.know.domain.AreaRepository;

@Service
public class AreaApplicationImpl implements AreaApplication {
	

	@Override
	public List<Area> findAll() {
		return areaRepository.findAll();
	}
	
	

	@Override
	public Area get(Long id) {
		return areaRepository.get(id);
	}



	@Autowired
	private AreaRepository areaRepository;

	public AreaRepository getAreaRepository() {
		return areaRepository;
	}

	public void setAreaRepository(AreaRepository areaRepository) {
		this.areaRepository = areaRepository;
	}
	
}
